package com.banana.manager.forest.dao.handle;

import com.banana.manager.forest.entity.handle.RecordBean;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

public interface IRecordDao extends BaseMapper<RecordBean> {

    @Select("select * from record_info left join discuss_info on record_id = fk_record_id where record_id = #{id}")
    @ResultMap("recordMap")
    RecordBean findOneById(Integer id);
}
